// swift-tools-version: 5.10
// The swift-tools-version declares the minimum version of Swift required to build this package.

import PackageDescription

let lottieXCFramework = Target.binaryTarget(
  name: "HammerKingKit",
  url: "https://gitee.com/hammer-brother-xp/hammer-king-kit/archive/refs/tags/1.0.3.zip",
  checksum: "f346f28bb3da3f2d91a5f39b2338f86ca1d61db77dfdcb899e64e004fa965166")

let package = Package(
    name: "TestSPM",
    products: [
        // Products define the executables and libraries a package produces, making them visible to other packages.
        .library(
            name: "TestSPM",
            targets: ["TestSPM"]),
    ],
    dependencies: [
        .package(url: "https://gitee.com/hammer-brother-xp/hammer-king-kit.git", .upToNextMajor(from: "1.0.3"))
    ],
    targets: [
        lottieXCFramework,
        // Targets are the basic building blocks of a package, defining a module or a test suite.
        // Targets can depend on other targets in this package and products from dependencies.
        .target(
            name: "TestSPM"),
        .testTarget(
            name: "TestSPMTests",
            dependencies: ["TestSPM"]),
    ]
)
